<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="shortcut icon" href="kkcai.png">
	<title>Admin . KKCai</title>
	<!-- Bootstrap core CSS -->
	<link rel="stylesheet" href="/static/css/bootstrap-3.0.2/dist/css/bootstrap.min.css" />

	<script type="text/javascript" src="/static/js/jquery-1.6.4.min.js"></script>
	<script type="text/javascript" src="/static/js/cp.js"></script>
</head>

<body>
	<div class="navbar navbar-default navbar-fixed-top" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="http://kankancai.duapp.com">KanKanCai</a>
			</div>
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li>
						<a href="/fl">All FL</a>
					</li>
					<li class="active">
						<a href="/cp">All CP</a>
					</li>
					<li>
						<a href="/admin">Today's Menu</a>
					</li>
				</ul>
		
				<form class="navbar-form navbar-right" role="form" action="/admin/login" method="get">
					<div class="form-group">
						<input type="text" placeholder="User" class="form-control" name="user">
					</div>
					<div class="form-group">
						<input type="password" placeholder="Password" class="form-control" name="passwd">
					</div>
					<button type="submit" class="btn btn-success">Sign in</button>
				</form>
			</div>
			<!--/.navbar-collapse -->
		</div>
	</div>
	<!--/navigation -->

	<div class="container">
		<!-- Main component for a primary marketing message or call to action -->
		<div class="jumbotron">

			<form>
				<table class="table table-hover">
					<tr>
						<th>FL:</th>
						<th>
							<select class="form-control" id="i_select_fl">
								<option value="00">All</option>
								{% for fl in fllist %}
									{% if fl.1 == curflid %}
										<option value="{{fl.1}}" selected="selected">{{fl.0}}</option>
									{% else %}
										<option value="{{fl.1}}">{{fl.0}}</option>
									{% endif %}
								{% endfor %}
							</select>
						</th>
					</tr>
					<tr>
						<th>CPID</th>
						<th>CPMC</th>
						<th>Operate</th>
					</tr>
					<tr>
						<td>
							<input type="text" class="form-control" id="i_text_cpid" />
						</td>
						<td>
							<input type="text" class="form-control" id="i_text_cpmc_add" />
						</td>
						<td>
							<input type="button" class="btn btn-success" id="i_btn_save" value="Save" />
							<input type="reset" class="btn btn-default" value="Discard" />
						</td>
					</tr>

					{% for cp in cplist %}
						<tr>
							<td id="i_td_cpid">{{cp.0}}</td>
							<td id="i_td_cpmc">{{cp.1}}</td>
							<td>
								<input type="button" class="btn btn-success" id="i_btn_edit" value="Edit" />
								<input type="button" class="btn btn-danger" id="i_btn_delete" value="Delete" />
								<input type="button" class="btn btn-default" id="i_btn_update" value="Update" />
								<input type="button" class="btn btn-default" id="i_btn_cancel" value="Cancel" />
							</td>
						</tr>
					{% endfor %}

				</table>
			</form>

		</div>
	</div>
	<!-- /container -->
</body>
</html>